<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<meta property="qc:admins" content="11467662572753656375" />
<meta property="wb:webmaster" content="3aad228902975ffb" />
<link rel="stylesheet" type="text/css" href="{CSS_PATH}zouzou/css/defalut.css">
<link rel="stylesheet" type="text/css" href="{CSS_PATH}zouzou/css/base.css">
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sgallery.js"></script>
<script type="text/javascript" src="{CSS_PATH}zouzou/js/base.js"></script>
</head>
<body>
<div class="header" id="DaoHang">
 	<div class="DaoHang_Logo"><img src="{CSS_PATH}zouzou/images/logo.png" width="140" height="47" /></div>
    <div class="DaoHang_Wen">
		{pc:content action="category" catid="0" num="5" siteid="$siteid" order="listorder ASC"}
			{loop $data $r}
		<a href="{$r[url]}">{$r[catname]}</a>
			{/loop}
        {/pc}
	</div>
	<div class="DaoHang_Sou">
    	<div class="DaoHang_Sou_l"><input name="" type="text" class="SouSOU" value="请输入关键字……" /></div>
      <div class="DaoHang_Sou_r"><input name="" type="button" class="anniu" /></div>
    </div>
    <div class="login">
		<div class="DaoHang_Tu">
	    {if get_login_show('qq_appkey')}<a href="{APP_PATH}index.php?m=member&c=index&a=public_qq_login2"><img src="{CSS_PATH}zouzou/images/qq.png"  /></a>{/if}
        {if get_login_show('sina_akey')}<a href="{APP_PATH}index.php?m=member&c=index&a=public_sina_login"><img src="{CSS_PATH}zouzou/images/weibo.png"/></a>{/if}
        {if get_login_show('rr_akey')}<a href="{APP_PATH}index.php?m=member&c=index&a=public_qq_login"><img src="{CSS_PATH}zouzou/images/rr.png" /></a>{/if}
		</div>
    	<div class="DaoHang_Deng"><a href="{APP_PATH}index.php?m=member&c=index&a=login">登录</a>|<a href="{APP_PATH}index.php?m=member&c=index&a=register">注册</a></div>
	</div>
	<div class="loginAfetr" id="all">
	   		<?php
				$_userid = param::get_cookie('_userid');
				$_username = param::get_cookie('_username');
				$_nickname = param::get_cookie('_nickname') ? param::get_cookie('_nickname') : $_username;
				if($_userid)
				{
					$memberinfo=get_memberinfo($_userid);
					$memberinfoimg1=get_memberavatar($_userid);
					
			?>
			<div class="loginfo">
				<span style="padding-top:14px;"><a href="{APP_PATH}index.php?m=member&c=index" target="_blank"><img src="{$memberinfoimg1}"  align="top" height="22" width="22" onerror="this.src='<?php echo CSS_PATH?>zouzou/images/22.png'" /></a></span><span><a href="{member_url($_username)}" target="_blank">{$_nickname}</a> 走走币: {$memberinfo['point']}</span>
				<div class="lic"><img src="{CSS_PATH}zouzou/images/back.gif" /><br />
					<div id="membermenu">
						<span><a href="{member_url($_username)}">我的空间</a></span>
						<span><a href="{APP_PATH}index.php?m=member&c=space&a=guanzu&username={$_username}">我的关注</a></span>
						<span><a href="{APP_PATH}index.php?m=member&c=space&a=fensi&username={$_username}">我的粉丝</a></span>
						<span><a href="{APP_PATH}index.php?m=member&c=space&a=yaoqing&username={$_username}">邀请朋友</a></span>
						<span><a href="#">设置</a></span>
						<span><a href="{APP_PATH}index.php?m=member&c=index&a=logout">退出</a></span>
					  </div>
				  </div>
			 </div>
	  <?php
	  	}
	  ?>
    </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$.ajax({
	  url: "{APP_PATH}index.php?m=member&c=index&a=public_memberinfo_ajax",
	  dataType:'json',
	  cache: false,
	  success: function(json){
		  if(json.userid>0){
			$("#all").show();
			$('.login').hide();
		  }else{
			$("#all").hide();
			$('.login').show();
		  }
	  }
	});
	$(".lic").hover(
	  function () {
		$(this).find("#membermenu").show();
	  },
	  function () {
		$(this).find("#membermenu").hide();
	  }
	);
});
</script>